package cn.hsa.fqz.task.enums;

/**
 * 检查结果枚举
 *
 * @author Administrator
 * @version 1.0
 * @date 2023-06-20 17:39
 */
public enum CheckResultEnums {
    //检查结果:1,约谈  2,通报批评 3,限期整改 4,解除协议 5,移交公安 6,移交卫健
    SELF_CHECK(0,"自查自纠"),INTERVIEW(1,"约谈"), NOTICE_CRITICISM(2, "通报批评"),DEADLINE_RECTIFICATION(3,"限期整改"),
    DUE_AGREE(4,"协议处置"),STOP_AGREE(5,"暂停协议"),RELEASE_AGREE(6,"解除协议"),
    SEND_SF(7,"移交司法(线索移交)"),SEND_GA(8,"移交司法机关"),SEND_WJ(9,"移交纪检监察机关"),GOV_PULISHED(10,"行政处罚"),NONE(12,"查否");


    private Integer value;
    private String desc;

    CheckResultEnums(Integer value,String desc){
        this.value = value;
        this.desc = desc;
    }

    public  Integer getValue(){
        return this.value;
    }

    public String getDesc(){
        return this.desc;
    }

    public static String getDesc(Integer value){
        CheckResultEnums[] enums = CheckResultEnums.values();
        for (CheckResultEnums en:enums) {
            if(en.value.intValue() == value.intValue()){
                return en.getDesc();
            }
        }
        return "";
    }
}
